JDK-8299339 : HashMap merge and compute methods can cause odd resizing pathologies
贴一下去年发现的 Bug,嘿嘿。
导致 Bug 的示例代码如下:
1 | public class Main { |
Java Bug DataBase 链接,里面比较详细的讨论了发生的问题,由于当时急着发出去,我的评论有点乱,而且是中文翻译为英文的,有点拉。
JDK-8299339 : HashMap merge and compute methods can cause odd resizing pathologies